#ifndef POETRY_H
#define POETRY_H

#include <QObject>
#include <string>
#include <QTimer>
#include <QFile>
#include <QTextStream>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonValue>
#include <QRandomGenerator>
#include <QDebug>

class Poetry : public QObject {
    Q_OBJECT
    Q_PROPERTY(QString getPoetry READ getPoetry NOTIFY poetryChanged)

public:
    explicit Poetry(QObject *parent = nullptr);
    ~Poetry();
    QString getPoetry(); // 获取诗歌
    QVector<QString> poems;
    int lastIndex;
Q_SIGNALS:
    void poetryChanged();
};

#endif // POETRY_H
